// 引入 request 文件
import {
	request
} from './index.js'

// 圈子添加文本
export const addCircle = (params) => {
	return request({
		url: '/community/insertCommunity',
		method: 'post',
		data: params,
		header: {
			'Content-Type': 'application/json'
		}
	})
}
// 圈子添加图片
export const addCircleImg = (params) => {
	return request({
		url: '/community/insertCommunity',
		method: 'post',
		data: params,
		header: {
			'Content-Type': 'multipart/form-data'
		}
	})
}
// 圈子列表
export const getCircleList = (params) => {
	return request({
		url: '/community/getCommunity',
		method: 'get',
		data: params,
	})
}